Settings
SettingsManager is responsible for managing settings in DXCharts. You can either provide your own SettingsManager or use the default implementation, DXCSettingsManager, provided by DXChart.
To set custom values, you simply need to provide a custom instance of Chart.Settings models through the SettingsManager instance.
Default settings
Setting | Default value |
---|---|
chartType | .candle |
highAndLow | false |
verticalGrid | true |
horizontalGrid | false |
candleWicks | true |
watermark | false |
tradingFromChart | false |
showActiveOrders | false |
showOpenPositions | false |
autoscalePriceAxis | true |
fitStudies | true |
fitOrders | false |
fitPositions | false |
invertScale | false |
lockScale | false |
scaleType | .regular |
sessionBreaks | false |
extendedHours | false |
alignDataWithSessionStart | false |
priceType | .last |
volume | true |
eventsOnChart | false |
dividends | false |
splitsAndConsolidations | false |
earningsAndEstimates | false |
conferenceCalls | false |
news | false |
Available settings:
- chartType: candle, bar, line, area, scatterPlot, hollowCandle, histogram, baseline, trend, heikinAshi, equivolume.
- scaleType: regular, percent, logarithmic.
- priceType: last, market, bid, ask.